<div class="field_row <?php echo str_replace(' ', '_', $field_name) ?>">
    <?php if($form[$field_name]->getWidget()->getLabel()): ?>
        <?php echo $form[$field_name]->renderLabel() ?>
    <?php endif ?>

    <div class="field_container">
        <?php echo $form[$field_name]->render() ?>

        <?php if($form[$field_name]->hasError()): ?>
            <div class="field_error">
                <?php echo $form[$field_name]->renderError() ?>
            </div>
        <?php endif ?>

        <?php if($form[$field_name]->renderHelp()): ?>
            <div class="form_help">
                <?php echo $form[$field_name]->renderHelp() ?>
            </div>
        <?php endif ?>
        
    </div>
</div>